package com.jiashihui.schema_lgorithm.schema.mediator;

/**
 * @author jiashihui
 * @describe: 抽象的用户类
 * @date 2019/03/15
 */
public abstract class AbstractUser {

    /* 中介 */
    private Mediator mediator;

    public AbstractUser(Mediator mediator) {
        this.mediator = mediator;
    }

    /**
     * 工作
     *
     * @author jiashihui
     */
    public abstract void work();

    public Mediator getMediator() {
        return mediator;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }
}
